package cn.Service.Impl;

import cn.Mapper.CommentMapper;
import cn.Service.CommentService;
import cn.entity.Comment;
import cn.entity.Order;
import cn.entity.OrderItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentMapper commentMapper;
    public int AddCommentBy(Comment comment) {
        return commentMapper.AddCommentBy(comment);
    }

    public List<OrderItem> FindPidByOid(Integer oid) {
        return commentMapper.FindPidByOid(oid);
    }
}
